//
//  PickNumShuangSeQiuViewController.h
//  PlayBall
//
//  Created by Edward Zhang on 12-5-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddBaseViewController.h"
#import "JddQueryDigitalLotteryIssueOperation.h"
#import "JddLotteryIssue.h"
#import "JddRandomSelectNumView.h"
#import "JddShuangSeQiuNumber.h"
#import <AVFoundation/AVFoundation.h>
#import <AudioToolbox/AudioToolbox.h>

@interface JddPickNumShuangSeQiuViewController : JddBaseViewController<UITabBarDelegate, QueryDigitalLotteryIssueOperationDelegate, UIAccelerometerDelegate,UIAlertViewDelegate>{
@private
    NSTimer      *countDownTimer;
    NSDate       *endTime;
    NSDate       *currentTime;
    NSMutableArray      *content;
    JddRandomSelectNumView *randomSelectNumberDialog;
    JddShuangSeQiuNumber   *lotteryNumber;
    NSMutableArray      *lotteryNumberArray;
    
    BOOL          sharked;
    NSInteger      shakeCount;
    BOOL          *querystate;
}

SHARED_VIEW_CONTROLLER_DECLARE(JddPickNumShuangSeQiuViewController);

@property (strong, nonatomic) IBOutlet UILabel *issueCodeLabel;
@property (strong, nonatomic) IBOutlet UILabel *remainTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *countlabel;
@property (strong, nonatomic) IBOutlet UILabel *moneylabel;

@property (strong, nonatomic) JddLotteryIssue *currentLotteryIssue;

- (IBAction)numberButtonClicked:(id)sender;
- (IBAction)randomSelectRedBall:(id)sender;
- (IBAction)randomSelectBlueBall:(id)sender;
-(IBAction)randomSelect:(id)sender;
-(IBAction)clearSelect:(id)sender;
-(IBAction)sureSelect:(id)sender;
-(void)destoryView;
- (void)countDownTimer:(NSTimer*)thisTimer;
//-(void)vibrate;


@end
